package com.blog4j.common.constants;

/**
 * @author 98k灬
 * @version v1.0.0
 * @Description : 公告系统常量
 * @Create on : 2024/6/20 12:17
 **/
public class CommonConstant {
    /**
     * 成功描述
     */
    public static final String SUCCESS_DESC = "success";

    /**
     * 成功响应码
     */
    public static final int SUCCESS_CODE = 200;

    /**
     * 失败描述
     */
    public static final String FAIL_DESC = "success";

    /**
     * 失败响应码
     */
    public static final int FAIL_CODE = 500;

    /**
     * 校验请求是否有效
     */
    public static final String GATEWAY_AUTHENTICATION = "gateway_authentication";

    /**
     * 时间格式化
     */
    public static final String DATE_TIME_FORMAT = "yyyy-MM-dd HH:mm:ss";

    /**
     * 日期格式化
     */
    public static final String COMPLETE_DATE_FORMAT = "yyyy-MM-dd";

    /**
     * 日期格式化
     */
    public static final String DATE_FORMAT = "yyyyMMdd";

    /**
     * 月份格式化
     */
    public static final String MONTH_FORMAT = "yyyyMM";

    /**
     * 逗号
     */
    public static final String COMMA = ",";

    /**
     * 认证token名称
     */
    public static final String AUTHENTICATION = "Authentication";

    /**
     * 查询前10条记录
     */
    public static final String LIMIT_TEN = "limit 10";

    /**
     * 查询前6条记录
     */
    public static final String LIMIT_SIX = "limit 6";

    /**
     * 文件分隔符
     */
    public static final String FILE_SPLIT = "/";

    /**
     * 只看自己
     */
    public static final String SELF = "self";

    /**
     * 每页最大展示的条数
     */
    public static final int MAX_PAGE_SIZE = 100;

    /**
     * 未知异常
     */
    public static final String UNKNOWN_ERROR = "未知异常";

    /**
     * feign
     */
    public static final String FEIGN_REQUEST = "/feign";

    /**
     * Inner-Access-token
     */
    public static final String INNER_ACCESS_TOKEN = "Inner-Access-token";

    /**
     * 注册成功默认给用户发送的消息
     */
    public static final String REGISTER_MESSAGE = "恭喜您注册成功，欢迎加入MBlog大家族，您可以发表文章，创建组织，关注其他有趣的博主！";

    /**
     * 默认的重试次数
     */
    public static final int DEFAULT_RETRY_TIMES = 3;

    /**
     * 默认的等待时间（毫秒）
     */
    public static final int DEFAULT_RETRY_INTERVAL_TIME = 1000;
}
